package axdoc.rule.check.impl;

import com.alibaba.fastjson.JSONObject;

import axdoc.rule.check.AbsCheck;
import axdoc.rule.check.LoadChecksUtil;

public class CheckBlackRule extends AbsCheck {


	public CheckBlackRule(int black) {
		this.black = black;
		this.cname = this.getClass().getName();
	}

	public CheckBlackRule() {
		super();
	}

	public int black;

	@Override
	public boolean check(JSONObject obj) {
		int b = obj.getIntValue("black");
		LoadChecksUtil.logger.info("[校验黑名单医生][black:" + black + "][b:" + b + "]");
		if (black == 1 && black == b) {
			LoadChecksUtil.logger.info("[校验黑名单医生][黑名单医生]");
			return false;
		}
		return true;
	}

}
